'use strict'


import Http from '../kit/HttpKit'
import Api from './Api'

/**
*  帐号模块
**/

const URL_ACCOUNT_DELETE = Api.API_URL + '/user/setSeal';
const URL_ACCOUNT_RECOVER = Api.API_URL + '/user/setNormal';
const URL_ACCOUNT_REGIST = Api.API_URL + '/user/register';


/**
* 帐号信息模块
**/
const list = (data, callback)=>{
	var url = Api.API_URL + '/user/listOfUser';

	data.api_token = Api.getApiToken();
	data.api_user_id = Api.getApiUserId();

	Http.post(url, data, json=>{
		Api.getDataCB(json, callback);
	});
}


export default{
	list,
	URL_ACCOUNT_DELETE,URL_ACCOUNT_RECOVER,URL_ACCOUNT_REGIST
}
